<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0066)http://www.dianziq.com/wenda/users/userModifyAction!profile.action -->
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script async charset="utf-8" src="./../images/pull"></script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>设置 - 电子圈</title>
<meta name="description" content="一个真实的网络问答社区，帮助你寻找答案，分享知识。">
<meta name="viewport" content="initial-scale=0.3, maximum-scale=1.0, minimum-scale=0.1, user-scalable=yes, width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<link href="http://www.dianziq.com/wenda/img/favicon.ico" rel="shortcut icon">
<link rel="stylesheet" href="./../images/myhome.css" type="text/css">
<script type="text/javascript" async src="./../images/ga.js"></script><script type="text/javascript" src="./../images/WdatePicker.js"></script>
<link href="./../images/WdatePicker.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="BAIDU_DUP_fp_wrapper" style="position: absolute; left: -1px; bottom: -1px; z-index: 0; width: 0px; height: 0px; overflow: hidden; visibility: hidden; display: none;">
  <iframe id="BAIDU_DUP_fp_iframe" src="./../images/o.htm" style="width: 0px; height: 0px; visibility: hidden; display: none;"></iframe>
</div>
<link rel="stylesheet" href="./../images/pagination.css" type="text/css">
<link rel="stylesheet" href="http://www.dianziq.com/wenda/css/search-suggest.css">
<link rel="stylesheet" href="http://www.dianziq.com/wenda/css/dzq-modal-dialog.css">
<link rel="stylesheet" href="http://www.dianziq.com/wenda/css/public.css?t=1388656193000">
<link rel="stylesheet" href="http://www.dianziq.com/wenda/css/dzq.1.0.css?t=1389758403000">
<link rel="stylesheet" href="http://www.dianziq.com/wenda/css/jquery/redmond/ui.all.css">
<link rel="stylesheet" href="http://www.dianziq.com/wenda/css/webim.css?t=1387424280000">
<script src="./../images/jquery.1.7.js"></script> 
<script type="text/javascript" src="./../images/jquery.placeholder.js"></script> 
<script src="./../images/jquery-wendaDropDrownList.js"></script> 
<script src="./../images/constan.js"></script> 
<script src="./../images/entity.js"></script> 
<script type="text/javascript" src="./../images/common.js"></script> 
<script src="./../images/jquery-dzq-win.js"></script> 
<script src="./../images/friend.js"></script> 
<script src="./../images/util.js"></script> 
<script src="./../images/header.js"></script> 
<script type="text/javascript" src="./../images/ajaxlogin.js"></script> 
<!-- 百度广告 --> 
<script type="text/javascript" src="./../images/m.js"></script> 
<!-- head beg -->

<div id="head" class="">
  <div class="guide">
    <div class="nav">
      <ul>
        <li><a href="./../index/index.htm" class="index_selected">首页</a></li>
        <li><a href="./../index/answerIndex.htm" class="wenda">问答</a></li>
        <li><a href="./../index/party.htm" class="party">活动</a></li>
        <li><a href="./../index/share.htm" class="share">分享</a></li>
        <li><a href="./../index/app.htm" class="app">APP下载</a></li>
      </ul>
    </div>
    <div class="search">
      <input type="text" id="zdq-search" value="搜人/问题/话题/活动">
      <div class="btn" id="search-btn"></div>
    </div>
    <div class="nav_div">
      <ul id="suckertree1">
        <li> <a class="first_a" href="./../personal/personalIndex.htm"> <img class="xbs" src="./../images/s_male.png"><span class="xas"> aafff </span> </a>
          <ul>
            <li><a class="default_a my_index" href="./../personal/personalIndex.htm">我的主页</a></li>
            <li><a class="default_a infos" href="./../personal/setInfo.htm">我的资料</a> </li>
            <li><a class="default_a guanxi" href="./../personal/myFriends.htm">我的关系</a> </li>
            <li><a class="default_a my_setting" href="./../personal/setCollect.htm">设置</a> </li>
            <li><a class="default_a my_out" href="./../index/login.htm">退出</a> </li>
          </ul>
        </li>
        <li class="shot" id="xds"> <span class="xev new" style="display:none" id="privatemsg">new</span> <a class="first_a center" href="./../Email/privateEmail.htm"> <img src="./../images/icons_v12_02.png"> </a>
          <ul>
            <li><a class="default_a sixin" href="./../Email/privateEmail.htm">私信 <span id="msgCount" class="xev" style="display: none;"></span></a></li>
            <li><a class="default_a tongzhi" href="./../Email/myEmail.htm">通知 <span id="notifyCount" class="xev" style="display: none;"></span> </a></li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</div>
<script type="text/javascript">

    /**
     * 当前用户资料JS初始化
     *
     * @type {{
     *      id: string,
     *      name: string,
     *      detail: string,
     *      img: string,
     *      flag: string,
     *      loginName: string,
     *      email: string,
     *      gender: string,
     *      type: string,
     *      city: string,
     *      company: string,
     *      position: string,
     *      tag: string,
     *      userType: string
     * }}
     */
    var User = {
        id: '48770',
        name: 'aafff',
        detail: 'fffffff',
        img: 'male.png',
        flag: '1',
        loginName: '',
        email: 'longge_364666387@qq.com',
        gender: '1',
        type: '0',
        city: '',
        company: '',
        position: '',
        tag: '',
        userType: '0'
    }



    // ---------------------------------- servletContext 值 -------------------------------------------
    var userNameInputMin = 2;
    var userNameInputMax = 10;

    var userDetailInputMin = 2;
    var userDetailInputMax = 50;

    var companyInputMin = 2;
    var companyInputMax = 15;

    var positionInputMin = 1;
    var positionInputMax = 10;

    var departmentInputMin = 1;
    var departmentInputMax = 10;

    var addrInputMin = 5;
    var addrInputMax = 20;

    var passwordInputMin = 6;
    var passwordInputMax = 30;

    var userRealnameInputMin = 2;
    var userRealnameInputMax = 5;

    var questionTitleInputMin = 5;
    var questionTitleInputMax = 40;

    var questionContentInputMin = 5;
    var questionContentInputMax = 500;

    var questionAnswerInputMin = 4;
    var questionAnswerInputMax = 250;

    var questionCommentInputMin = 1;
    var questionCommentInputMax = 200;

    var answerCommentInputMin = 1;
    var answerCommentInputMax = 200;

    var shareTitleInputMin = 2;
    var shareTitleInputMax = 400;

    var shareContentInputMin = 5;
    var shareContentInputMax = 200;

    var shareCommentInputMin = 5;
    var shareCommentInputMax = 200;

    var partyTitleInputMin = 5;
    var partyTitleInputMax = 20;

    var partySummaryInputMin = 5;
    var partySummaryInputMax = 100;

    var partyCommentInputMin = 1;
    var partyCommentInputMax = 200;


    /**
     * JS中所有字段的长度初始值, 但是每次都要以服务端为准, 将资源文件的配置长度在web容器舒适化的时候放进
     *
     * @type {{
     *      userName: {input_min: number, input_max: number},
     *      userDetail: {input_min: number, input_max: number},
     *      company: {input_min: number, input_max: number},
     *      position: {input_min: number, input_max: number},
     *      department: {input_min: number, input_max: number},
     *      addr: {input_min: number, input_max: number},
     *      password: {input_min: number, input_max: number}, // 按字节算
     *      userRealname: {input_min: number, input_max: number},
     *      questionTitle: {input_min: number, input_max: number},
     *      questionContent: {input_min: number, input_max: number},
     *      questionAnswer: {input_min: number, input_max: number},
     *      questionComment: {input_min: number, input_max: number},
     *      answerComment: {input_min: number, input_max: number},
     *      shareTitle: {input_min: number, input_max: number},
     *      shareContent: {input_min: number, input_max: number},
     *      shareComment: {input_min: number, input_max: number},
     *      partyTitle: {input_min: number, input_max: number},
     *      partySummary: {input_min: number, input_max: number},
     *      partyComment: {input_min: number, input_max: number}
     * }}
     */
    var lengthRange = {
        // ---------------------- 用户 --------------------
        userName: {input_min: userNameInputMin || 2, input_max: userNameInputMax || 10}, // 昵称长度
        userDetail: {input_min: userDetailInputMin || 5, input_max: userDetailInputMax || 50}, // 个人简介
        company: {input_min: companyInputMin || 2, input_max: companyInputMax || 15}, // 公司
        position: {input_min: positionInputMin || 1, input_max: positionInputMax || 10}, // 职位
        department: {input_min: departmentInputMin || 1, input_max: departmentInputMax || 10}, // 部门
        addr: {input_min: addrInputMin || 5, input_max: addrInputMax || 20}, // 地址
        password: {input_min: passwordInputMin || 6, input_max: passwordInputMax || 30}, // 密码, 按字节算
        userRealname: {input_min: userRealnameInputMin || 2, input_max: userRealnameInputMax || 5}, // 真实姓名
        // ---------------------- 问题 --------------------
        questionTitle: {input_min: questionTitleInputMin || 5, input_max: questionTitleInputMax || 40}, // 问题标题
        questionContent: {input_min: questionContentInputMin || 5, input_max: questionContentInputMax || 500}, // 问题补充
        questionAnswer: {input_min: questionAnswerInputMin || 4, input_max: questionAnswerInputMax || 250}, // 问题回答
        questionComment: {input_min: questionCommentInputMin || 4, input_max: questionCommentInputMax || 250}, //问题评论
        answerComment: {input_min: answerCommentInputMin || 1, input_max: answerCommentInputMax || 200}, // 回答评论
        // ---------------------- 分享 --------------------
        shareTitle: {input_min: shareTitleInputMin || 2, input_max: shareTitleInputMax || 400}, // 分享标题
        shareContent: {input_min: shareContentInputMin || 5, input_max: shareContentInputMax || 200}, // 分享补充
        shareComment: {input_min: shareCommentInputMin || 5, input_max: shareCommentInputMax || 200}, // 分享评论
        // ---------------------- 活动 --------------------
        partyTitle: {input_min: partyTitleInputMin || 5, input_max: partyTitleInputMax || 20}, // 活动标题
        partySummary: {input_min: partySummaryInputMin || 5, input_max: partySummaryInputMax || 100}, // 活动简介
        partyComment: {input_min: partyCommentInputMin || 1, input_max: partyCommentInputMax || 200} // 活动评论
    };

</script> 

<!-- head end --> 

<script type="text/javascript">

    $(function () {
        var search = $("input[name='q']");
        var sval = '搜人/问题/话题/活动';
        search.focus(function () {
            if (search.val() == $.trim(sval)) {
                search.val("");
            }
        });
    });

    // 分享那边裁剪图片大小
    function changeImageSize() {
        // 替换掉分享中所有的大图
        $('div.s_share_text img').each(function () {
            var imageObject = $(this);
            var imgUrl = imageObject.attr("src");
            if (!imageObject.hasClass("public_smile_icon")) {
                imageObject.addClass("zoom-cursor");
            }
            if (imgUrl.indexOf("imface/common")>-1) {
            	
            } else if (imgUrl.indexOf("dianziq") > -1 && imgUrl.indexOf('_') == -1) {
                // 对文件做处理
                var index = imgUrl.lastIndexOf("/"),pre = imgUrl.substring(0, index + 1),last = imgUrl.substring(index + 1, imgUrl.length),newSrc = pre + '150x150f_' + last;
                imageObject.attr({src: newSrc,"lazy-load":imgUrl,title:'点击放大'});
            } else {
                imageObject.css({width:"150px",height:"150px"});
            }
        });
        $('div.s_share_text img').click(function(e){
            var imgUrl = $(this).attr("lazy-load"),_p=$(this).parent(),size=_p.find("img").length,html=[],_imgHtml=[];
			if (imgUrl.indexOf("imface/common")==-1 && imgUrl.indexOf("dianziq") > -1) {
				//当兄弟图片数大于1，将图片合起来
				/*if(size>1){
					//找到当前图片的兄弟图片
					_imgHtml.push("<ul style='height: 55px;float: left'>");
					_p.find("img").each(function(){
						_imgHtml.push("<li style='float: left;width:60px'>");
						if(imgUrl==$(this).attr("lazy-load")){
							_imgHtml.push("<a href='#' style='border: 2px solid #ffa306;display: inline-block;line-height:0;'><img style='display:inline-block;margin-top:0;line-height:0;' width='50px' height='50px' src='"+$(this).attr("lazy-load")+"'></a>");
						}else{
							_imgHtml.push("<a href='#' style='opacity: 0.5;filter: alpha(opacity=50);'><img style='display:inline-block;margin-top:0;line-height:0;' width='50px' height='50px' src='"+$(this).attr("lazy-load")+"'></a>");
						}
						_imgHtml.push("</li>");
					});
					_imgHtml.push("</ul>");
				}*/
				if(_p.next().length>0){
					//显示div
					_p.next().show();
				}else{
					html.push('<div style="/*border-bottom:solid 1px grey;*/padding-bottom:5px;">');
					html.push('<div class="zoom-cursor">');
					html.push('<img class="smallcursor" src="'+imgUrl+'" style="display:inline-block">');
					html.push('</div>');
					/*if(size>1){
						html.push('<div style="height:56px;">');
						html.push('<a style="background-color: #d7ebf0;float: left;width: 12px;height: 50px;margin-top: 10px;margin-right: 3px"><em style="line-height: 50px"><</em></a>');
						html.push(_imgHtml.join(""));
						html.push('<a style="background-color: #d7ebf0;float: right;width: 12px;height: 50px;margin-top: 10px;margin-left: 3px"><em style="line-height: 50px">></em></a>');
						html.push('</div>');
					}*/
					html.push('</div>');
					//将放大的图片放到当前点击的图片所在div的后面，作为兄弟节点显示。
					_p.after(html.join(""));
				}
				_p.hide();
            	//点击放大的图片时缩小
				$(".smallcursor").click(function(){
					var $this = $(this),pre=$(this).parent().parent().prev(),firstli=$this.closest("li"),_top=firstli.offset().top,scrollTop=$(document).scrollTop();
					pre.show();
					//将整个内容删除
					$this.parent().parent().remove();
					//当元素被遮住时，才会滚动到元素所在位置显示。
					if(scrollTop>_top){
						scrollTo(0,firstli.offset().top);
					}
				});
			}
        });
        $('.s_share_list .s_share_text img').css("display", "inline-block");
    }

    //在js中封装用户对象信息和其他信息，方便其他地方调用
    var basePath = 'http://www.dianziq.com:80/wenda/';
    Constans.BASE_PATH = "http://www.dianziq.com:80/wenda/";
    Constans.IMG_BASE_URL = "http://img.dianziq.com/img/";
    var USER_DEFAULT_IMG = "user_default_img.jpg";
    //客户端时间同步服务器时间
    var _serverTimes = 1393911719043;

    $(function () {
        if (!document.all) {
            $("#search_Data").append("<label class=\"xjr\" style=\"\" >搜索话题、问题或人…</label>");
        }
    });

    var menuids = ["suckertree1"]; //Enter id(s) of SuckerTree UL menus, separated by commas

    function buildsubmenus() {
        for (var i = 0; i < menuids.length; i++) {
            var ultags = document.getElementById(menuids[i]).getElementsByTagName("ul");
            for (var t = 0; t < ultags.length; t++) {
                ultags[t].parentNode.onmouseover = function () {
                    this.getElementsByTagName("ul")[0].style.display = "block";
                }
                ultags[t].parentNode.onmouseout = function () {
                    this.getElementsByTagName("ul")[0].style.display = "none";
                }
            }
        }
    }

    if (window.addEventListener)
        window.addEventListener("load", buildsubmenus, false)
    else if (window.attachEvent)
        window.attachEvent("onload", buildsubmenus)
</script> 

<!--[if lte IE 6]>
<div class="if_ie"><div><p>由于你正在使用IE6浏览器，电子圈帐号正在遭遇严重安全风险，建议你立即升级到以下最新浏览器保护电子圈帐号安全，以获得更好的电子圈产品体验。</p>
<p>请升级 <span class="ie">&nbsp;<span><a href="http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie">Internet Explorer</a> 或使用 <span class="google">&nbsp;<span><a href="http://www.google.com/chrome/">Google Chrome</a> 、 <span class="firefox">&nbsp;<span><a href="http://www.firefox.com.cn/download/">firefox</a>浏览器。</p></div></div>
<![endif]-->

<div class="main">
  <div class="message red fontsize" style="text-align:center"><strong>您的邮箱还未验证，赶紧验证您的邮箱，让更多圈友找到你吧！</strong>&nbsp;&nbsp;<a href="http://www.dianziq.com/wenda/users/userModifyAction!accountSafeSetting.action?flag=base&tip=email">立即去验证</a></div>
  <div class="clear"></div>
  <div class="mapsite">您现在的位置：<a href="http://www.dianziq.com/wenda/user/userAction!getUser.action">个人主页</a>&gt;&gt;
    个人资料 </div>
  <div class="myinfo_main">
    <div class="myinfo_left">
      <div class="myinfo_big">
        <div class="face"> <a href="http://www.dianziq.com/wenda/user/userAction!getUser.action?currentId=48770"><img src="./../images/l_male.png"></a> </div>
        <div class="num"> 关注 <a href="http://www.dianziq.com/wenda//user/userAction!relationShips.action?flag=follow&currentId=48770">0</a><br>
          粉丝 <a href="http://www.dianziq.com/wenda/user/userAction!relationShips.action?flag=beFollow&currentId=48770">0</a><br>
          提问 <a href="http://www.dianziq.com/wenda/user/userAction!getUser.action?flag=asked&currentId=48770">0</a><br>
          回答 <a href="http://www.dianziq.com/wenda/user/userAction!getUser.action?flag=answered&currentId=48770">0</a><br>
        </div>
      </div>
      <ul class="myinfo_nav">
        <li><a href="./../images/设置 - 电子圈.htm" class="selected">个人资料</a></li>
        <li><a href="http://www.dianziq.com/wenda/users/userModifyAction!accountSafeSetting.action">账号安全</a></li>
        <li><a href="http://www.dianziq.com/wenda/notify/index!setting.action">通知提醒</a></li>
        <li><a href="http://www.dianziq.com/wenda/users/userModifyAction!verify.action">实名认证</a></li>
      </ul>
    </div>
    <div class="myinfo_right">
      <ul class="mh_info_tab" name="mh2_tab">
        <li><a href="http://www.dianziq.com/wenda/users/userModifyAction!profile.action?flag=base" class="selected">基本信息</a></li>
        <li><a href="http://www.dianziq.com/wenda/users/userModifyAction!profile.action?flag=career">职业信息</a></li>
        <li><a href="http://www.dianziq.com/wenda/users/userModifyAction!profile.action?flag=photo">头像修改</a></li>
      </ul>
      <div class="clear"></div>
      <div id="tabListDiv">
        <div> 
          
          <!-- ***************************************************** 基本信息  *****************************************************-->
          <div class="myinfo_content"> 
            <!-- 姓名 -->
            <dl class="base_info">
              <dt> <font color="red">*</font>
                <label>姓名：</label>
              </dt>
              <dd>
                <input type="text" value="aafff" id="userName" class="short_text">
                <span name="userName-tip" class="orange"></span><br>
                <label class="grey">您的显示姓名</label>
              </dd>
              <div class="clear"></div>
            </dl>
            
            <!--  性别 -->
            <dl class="base_info">
              <dt><font color="red">*</font>
                <label class="">性别：</label>
              </dt>
              <dd>
                <label>
                  <input type="radio" value="1" name="gender" checked="checked">
                  男</label>
                <label>
                  <input type="radio" value="-1" name="gender">
                  女</label>
                <span name="gender-tip" class="orange"></span> </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 个人介绍 -->
            <dl class="base_info">
              <dt> <font color="red">*</font>
                <label>个人介绍：</label>
              </dt>
              <dd>
                <div>
                  <textarea id="userDetail" class="default_text">fffffff</textarea>
                  <span name="userDetail-tip" class="orange"></span> </div>
                <label class="grey"> 用一段话介绍你自己，增加交流认识同行机会  &nbsp; <span id="user_detail_cnt"></span></label>
              </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 真实姓名 -->
            <dl class="base_info">
              <dt> <font color="red">*</font>
                <label>真实姓名：</label>
              </dt>
              <dd class="intext">
                <input type="text" value="" class="short_text" id="realname">
                <select class="default_text" name="realname-vbt">
                  <option value="1" selected="selected">所有人可见</option>
                  <option value="2">好友可见</option>
                  <option value="3">仅自己可见</option>
                </select>
                <br>
                <label class="grey">您的真实姓名</label>
                <span name="realname-tip" class="orange"></span> </dd>
              <dd class="setting"> </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 城市 -->
            <dl class="base_info">
              <dt>
                <label><font color="red">*</font> 所在城市：</label>
              </dt>
              <dd>
                <div> 
                  <!-- 省份 -->
                  <select id="province" name="province" class="default_text">
                    <option selected="selected">--请选择省份--</option>
                    <option value="1">北京市</option>
                    <option value="2">天津市</option>
                    <option value="3">河北省</option>
                    <option value="4">山西省</option>
                    <option value="5">内蒙古自治区</option>
                    <option value="6">辽宁省</option>
                    <option value="7">吉林省</option>
                    <option value="8">黑龙江省</option>
                    <option value="9">上海市</option>
                    <option value="10">江苏省</option>
                    <option value="11">浙江省</option>
                    <option value="12">安徽省</option>
                    <option value="13">福建省</option>
                    <option value="14">江西省</option>
                    <option value="15">山东省</option>
                    <option value="16">河南省</option>
                    <option value="17">湖北省</option>
                    <option value="18">湖南省</option>
                    <option value="19">广东省</option>
                    <option value="20">广西壮族自治区</option>
                    <option value="21">海南省</option>
                    <option value="22">重庆市</option>
                    <option value="23">四川省</option>
                    <option value="24">贵州省</option>
                    <option value="25">云南省</option>
                    <option value="26">西藏自治区</option>
                    <option value="27">陕西省</option>
                    <option value="28">甘肃省</option>
                    <option value="29">青海省</option>
                    <option value="30">宁夏回族自治区</option>
                    <option value="31">新疆</option>
                    <option value="32">台湾省</option>
                    <option value="33">香港特别行政区</option>
                    <option value="34">澳门特别行政区</option>
                    <option value="35">海外</option>
                    <option value="36">其他</option>
                  </select>
                  <!-- 地级市 -->
                  <select id="city" name="city" class="default_text">
                    <option value="0">--请选择城市--</option>
                    <option value="275">长沙市</option>
                    <option value="276">株洲市</option>
                    <option value="277">湘潭市</option>
                    <option value="278">衡阳市</option>
                    <option value="279">邵阳市</option>
                    <option value="280">岳阳市</option>
                    <option value="281">常德市</option>
                    <option value="282">张家界市</option>
                    <option value="283">益阳市</option>
                    <option value="284">郴州市</option>
                    <option value="285">永州市</option>
                    <option value="286">怀化市</option>
                    <option value="287">娄底市</option>
                    <option value="288">湘西土家族苗族自治州</option>
                  </select>
                  
                  <!-- 市、县级市 >
						<select id="district" name="district" class="default_text"><option value="0">--请选择县级市--</option></select--> 
                  <span name="city-tip" class="orange"></span><br>
                  <label class="grey">您的所在城市</label>
                </div>
              </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 详细地址 -->
            <dl class="base_info">
              <dt>
                <label>详细地址：</label>
              </dt>
              <dd class="intext">
                <input type="text" id="address" name="address" value="" class="default_text" placeholder="详细地址" placeholder1="详细地址">
                <br>
                <label class="grey">常用的联系地址</label>
              </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 标签 -->
            <dl class="base_info">
              <dt>
                <label>标签：</label>
              </dt>
              <dd class="intext">
                <input type="text" value="" class="default_text" id="tag">
                <span name="tag-tip" class="orange"></span><br>
                <label class="grey">给自己贴标签,方便找到适合的同行</label>
              </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 出生年月 -->
            <dl class="base_info">
              <dt>
                <label>出生年月：</label>
              </dt>
              <dd class="intext">
                <input onfocus="WdatePicker({skin:&#39;whyGreen&#39;,dateFmt:&#39;yyyy-MM-dd&#39;,autoPickDate:true})" type="text" value="" class="short_text" id="birthday">
                <label class="grey">不公开</label>
                <span name="birthday-tip" class="orange"></span><br>
              </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- QQ号码 -->
            <dl class="base_info">
              <dt>
                <label>QQ号码：</label>
              </dt>
              <dd class="intext">
                <input type="text" value="" class="short_text" id="qq">
                <select class="default_text" name="qq-vbt">
                  <option value="1">所有人可见</option>
                  <option value="2">好友可见</option>
                  <option value="3" selected="selected">仅自己可见</option>
                </select>
                <br>
                <span name="qq-tip" class="orange"></span> </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 微博地址 -->
            
            <div class="clear"></div>
          </div>
          <div>
            <dl class="post_info top_line">
              <dt>&nbsp;</dt>
              <dd><a class="mh_save_btn" onclick="javascript:saveSetting();">保存</a> </dd>
            </dl>
          </div>
        </div>
        <div style="display: none;">
          <div class="myinfo_content"> 
            
            <!-- 行业领域 -->
            <dl class="base_info">
              <dt> <font color="red">*</font>
                <label>行业/领域：</label>
              </dt>
              <dd>
                <select name="userintegrityinfo.industry" id="industry" class="default_text">
                  <option value="-1">请选择</option>
                  <option value="航空、航海及军用电子" selected="selected">航空、航海及军用电子</option>
                  <option value="通信与网络">通信与网络</option>
                  <option value="行业服务">行业服务</option>
                  <option value="安防">安防</option>
                  <option value="智能电力/交通系统">智能电力/交通系统</option>
                  <option value="医疗设备/医疗电子">医疗设备/医疗电子</option>
                  <option value="LED/显示系统">LED/显示系统</option>
                  <option value="集成电路/电子元器件">集成电路/电子元器件</option>
                  <option value="电脑/电脑外围设备">电脑/电脑外围设备</option>
                  <option value="汽车电子">汽车电子</option>
                  <option value="工业控制及自动化">工业控制及自动化</option>
                  <option value="消费电子">消费电子</option>
                  <option value="新能源及节能产品">新能源及节能产品</option>
                </select>
                <span name="industry-tip" class="orange"></span> </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 工作性质-->
            <dl class="base_info">
              <dt> <font color="red">*</font>
                <label>职业类型：</label>
              </dt>
              <dd>
                <select name="userintegrityinfo.jobnature" id="jobnature" class="default_text">
                  <option value="-1">请选择</option>
                  <option value="生产制作" selected="selected">生产制作</option>
                  <option value="研发设计">研发设计</option>
                  <option value="行业服务">行业服务</option>
                  <option value="企业管理">企业管理</option>
                  <option value="质量控制">质量控制</option>
                  <option value="生产管理">生产管理</option>
                  <option value="项目管理">项目管理</option>
                  <option value="测试测量">测试测量</option>
                  <option value="市场销售">市场销售</option>
                  <option value="采购">采购</option>
                  <option value="学术研究">学术研究</option>
                </select>
                <span name="jobnature-tip" class="orange"></span> </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 公司名称 -->
            <dl class="base_info">
              <dt class="">
                <label><font color="red">*</font> 公司名称：</label>
              </dt>
              <dd class="intext">
                <input type="hidden" value="0" class="default_text" id="userCompanyId">
                <input type="text" ref="suggestion" data-stype="company" value="" class="default_text" id="userCompany">
                <select class="default_text" name="company-vbt">
                  <option value="1" selected="selected">所有人可见</option>
                  <option value="2">好友可见</option>
                  <option value="3">仅自己可见</option>
                </select>
                <br>
                <label class="grey">您现在所服务的公司</label>
                <span name="company-tip" class="orange"></span> </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 部门 -->
            <dl class="base_info">
              <dt> <font color="red">*</font>
                <label>部门：</label>
              </dt>
              <dd class="intext">
                <input type="text" ref="suggestion" data-stype="department" value="" class="default_text" id="department">
                <select class="default_text" name="department-vbt">
                  <option value="1" selected="selected">所有人可见</option>
                  <option value="2">好友可见</option>
                  <option value="3">仅自己可见</option>
                </select>
                <br>
                <label class="grey">所属公司部门</label>
                <span name="department-tip" class="orange"></span> </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 职位 -->
            <dl class="base_info">
              <dt> <font color="red">*</font>
                <label>职位：</label>
              </dt>
              <dd>
                <input type="text" data-stype="position" ref="suggestion" value="aaaa" class="default_text" id="position">
                <span name="position-tip" class="orange"></span><br>
                <label class="grey">工作职位</label>
              </dd>
              <div class="clear"></div>
            </dl>
            <!-- 产品 -->
            <dl class="base_info">
              <dt>
                <label>主要产品：</label>
              </dt>
              <dd>
                <input type="text" value="" class="default_text" id="product">
                <br>
                <label class="grey">公司的主要产品</label>
              </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 关注的产品 -->
            <dl class="base_info">
              <dt>
                <label>你关注的：</label>
              </dt>
              <dd>
                <input type="text" value="" class="default_text" id="fproduct">
                <br>
                <label class="grey">你关注的产品</label>
              </dd>
              <div class="clear"></div>
            </dl>
            
            <!-- 毕业学校 -->
            <dl class="base_info">
              <dt>
                <label>毕业院校：</label>
              </dt>
              <dd>
                <input type="text" value="" class="default_text" id="school">
                <br>
                <label class="grey">您的毕业院校</label>
              </dd>
              <div class="clear"></div>
            </dl>
          </div>
          <dl class="post_info top_line">
            <dd> <a class="mh_save_btn" onclick="javascript:saveCareerInfo();">保存</a> </dd>
          </dl>
          <script type="text/javascript" src="./../images/dzq-suggestion.js"></script> 
        </div>
        <!-- 		<div style="display: none;" > --> 
        
        <!-- 		</div> -->
        <div style="display: none;"> 
          <script type="text/javascript" src="./../images/jquery.cut-picture.js"></script> 
          <script type="text/javascript" src="./../images/ajaxfileupload.js"></script>
          <link rel="stylesheet" type="text/css" href="./../images/cut-picture.css">
          <style type="text/css">
.container:after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}
.demo {
    background: none repeat scroll 0 0 #EEEEEE;
    border: 2px solid #DDDDDD;
    border-radius: 4px 4px 4px 4px;
    padding: 0.6em;
}
div.frame {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 2px solid #DDDDDD;
    padding: 0.8em;
}
</style>
          <div class="myinfo_content"> 
            <!-- 头像 -->
            <div class="focus">
              <div class="min_text">
                <div class="main_default">
                  <div class="file_up">
                    <input type="file" id="avt_file" name="photo" onchange="uploadImage();">
                    <div class="fontsize" style="display: block;">支持 jpg,png 格式的图片，不要超过 2MB。建议图片尺寸大于 100×100</div>
                  </div>
                </div>
              </div>
              <div class="clear"></div>
            </div>
          </div>
          <input type="hidden" name="x1" value="0">
          <input type="hidden" name="y1" value="0">
          <input type="hidden" name="width" value="100">
          <input type="hidden" name="height" value="100">
          <div id="facediv" style="display:none;z-index:100; width:600px;" class="container demo">
            <div style="float: left;">
              <div class="frame" id="origin" style="margin: 0 0.3em;"> <img id="photo" width="300px"> </div>
            </div>
            <div style="float: left;">
              <div class="frame" style="margin: 0 1em; width: 100px; height: 100px;">
                <div id="preview" style="width: 100px; height: 100px; overflow: hidden;"> <img id="shadow" style="margin-left: 0px; margin-top: 0px;"> </div>
              </div>
              <br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <input type="button" id="uploadCutImg" class="operate_btn" value="上传图片">
            </div>
          </div>
          <script type="text/javascript">
		function uploadImage() {
			
			if (!chackUrl()) {
				return ; 
			} else {
				//将imgAreaSelect对象移除
				$('#photo').imgAreaSelect({remove:true});
				
			    $.ajaxFileUpload( {  
			        url : 'http://www.dianziq.com:80/wenda/upload/uploadAction!uphoto.action',// 需要链接到服务器地址  
			        fileElementId : 'avt_file',// 文件选择框的id属性  
			        dataType : 'json',// 服务器返回的格式，可以是json  
			        secureuri:false,//一般设置为false 
			        data:{'type':'user'},
			        type : "POST",
			        success : function(data) {
			            if (data != null) {
			               $("#facediv").css({"display":"block"});
			               $("#photo").attr("src",data['filePath']);  
			               $("#shadow").attr("src",data['filePath']); 
			               $('#uploadCutImg').click(function (){  
			                    cutImage(data['fileName']);  
			                });  
			               
			               var _img = $('#photo').imgAreaSelect({
			                	aspectRatio : '1:1', 
			                    x1:0,y1:0,x2:150,y2:150,  
			                    handles : true, 
			                    //minHeight:150,
			                    //minWidth:150,
			                    fadeSpeed : 200,
			                    instance: true,
			                    onSelectChange: function (img, selection) {  
			                        var scaleX = 100 / (selection.width || 1);  
			                        var scaleY = 100 / (selection.height || 1);  
			                        var _w = $("#photo")[0].width;
			                        var _h = $("#photo")[0].height;
			                        $('#preview img').css({  
			                            width: Math.round(scaleX * _w) + 'px',  
			                            height: Math.round(scaleY * _h) + 'px',  
			                            marginLeft: '-' + Math.round(scaleX * selection.x1) + 'px',  
			                            marginTop: '-' + Math.round(scaleY * selection.y1) + 'px'  
			                        });  
			                    },
			                    onInit:function(){
			                    	var _w = $("#photo")[0].width;
			                        var _h = $("#photo")[0].height;
			                   	 	$("#shadow")[0].width=_w*2/3;
			                        $("#shadow")[0].height=_h*2/3; 
			                    },
			                    onSelectEnd: function (img, selection) {  
			                        $('input[name="x1"]').val(selection.x1);  
			                        $('input[name="y1"]').val(selection.y1);  
			                        $('input[name="width"]').val(selection.width);  
			                        $('input[name="height"]').val(selection.height);  
			                    }   
			                });
			            } else{
			            	alert("图片上传失败");
			            }
			        },  
			        error : function(data) {  
			        }  
			    });
			   
			}
		} 
		
		
		/**
		 * 将剪切后的图片参数传到后台
		 */
		function cutImage(fileName) {
			$.ajax( {  
		        type : "POST",  
		        url:"http://www.dianziq.com:80/wenda/upload/uploadAction!copy.action",  
		        dateType:"json",  
				data : {
					"type" : "user",
					"x1" : $('input[name="x1"]').val(),
					"y1" : $('input[name="y1"]').val(),
					"width" : $('input[name="width"]').val(),
					"height" : $('input[name="height"]').val(),
					"fileName" : fileName
				},
				success : function(data) {
					// 成功刷新页面
					if (data != null && data['message'] == 'ok') {
						window.location.href = window.location.href ;
					} else {
						alert("对不起,操作失败");
					}
				},
				error : function(data) {
				}
			});
		}

		function hideDiv() {
			$("#facediv").hide();
			$('.imgareaselect-selection').parent().hide();
			$('.imgareaselect-outer').hide();
		}
	</script> 
        </div>
        <!-- 		<div style="display: none;" > --> 
        
        <!-- 		</div> --> 
      </div>
    </div>
    <div class="clear"></div>
  </div>
</div>

<!-- 自定义JS -->

<div class="copyright">
  <p class="fontsize"> <a target="_blank" href="http://www.dianziq.com/wenda/guide/guideAction!userAgreement.action">电子圈协议</a> <em>·</em> <a id="feedback" href="javascript:;">意见反馈</a> </p>
  <p> <a href="http://www.miibeian.gov.cn/" target="_blank">粤ICP备 09166010号</a> <em>·</em> Copyright © 2012-2014 电子圈 <a key="52f5d4e23b05a3da0f0f11e9" logo_size="83x30" logo_type="realname" href="http://www.anquan.org/s/www.dianziq.com?from=logo&tab=wzmp" target="_blank"><script src="./../images/aq_auth.js">
	     </script><span style="display:none;" id="AQ_logo_7vxr5hVh6173pt15"><script src="./../images/saved_resource" type="text/javascript" async></script></span><img src="./../images/sm_83x30.png" alt="安全联盟认证" width="83" height="30" style="border: none;"></a> </p>
</div>
<div id="voteTip" class="goog-tooltip" style="display: none; left: 260.5px; top: 560px; position: absolute;z-index: 100;">
  <div class="voteTipCorner"></div>
  <div class="agree_div" id="voteAgree">赞同</div>
</div>
<script src="./../images/jquery.ui.min.js"></script> 
<script type="text/javascript" src="./../images/share.js"></script> 
<script type="text/javascript" src="./../images/follow.js"></script> 
<script type="text/javascript" src="./../images/ask.js"></script> 
<script type="text/javascript" src="./../images/popup.js"></script> 
<script type="text/javascript" src="./../images/page_split.js"></script> 
<script type="text/javascript" src="./../images/question_list.js"></script> 
<script type="text/javascript" src="./../images/jquery.uploadify.js"></script> 
<script src="./../images/dzq-elexcon.js"></script> 
<script type="text/javascript" charset="UTF-8" src="./../images/webim.js"></script> 
<script type="text/javascript">
    function urlParamToCookie(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) {
            var exdate = new Date();
            exdate.setTime(exdate.getTime() + 3600 * 8000);
            document.cookie = name + "=" + r[2] + ";path=/; expires=" + exdate.toUTCString();
        }
    }
    urlParamToCookie("__urf");
    /**
     * 获取通知/私信的數量
     **/
    function getCount() {
        $.get(basePath + 'notify/index!count.action?time=' + (new Date().getTime()), function (count) {
            $msgCount = $('#msgCount');
            $notifyCount = $("#notifyCount");
            var nNc = count.nNc;
            var nMc = count.nMc;
            if (nNc > 0 || nMc > 0) {
                $('#privatemsg').show();
            }
            if (nNc > 0) {
                $notifyCount.html(nNc);
                $notifyCount.show();
            }
            else {
                $notifyCount.hide();
            }
            if (nMc > 0) {
                $msgCount.html(nMc);
                $msgCount.show();
            }
            else {
                $msgCount.hide();
            }
        }, 'json');
    }
    $(document).ready(function () {
        getCount();
        try {
            if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) { //ie6
            } else {
                IM.urlbase = "http://im.dianziq.com";
                IM.imgbase = "http://img.dianziq.com/img/";
                IM.webroot = "http://www.dianziq.com:80/wenda/";
                IM.init(parseInt(User.id));
            }
        } catch (e) {
        }
        //根据窗口大小设置图片播放器大小
        $(window).bind("resize", function () {
            setImgPlayerSize();
        });
    });
    //设置图片播放器大小
    function setImgPlayerSize() {
        var $_graymodel = $("#graymodel");
        var w = $_graymodel.width();
        var h = $_graymodel.height();
        $_graymodel.css("marginTop", -h / 2 + "px");
        $_graymodel.css("marginLeft", -w / 2 + "px");
    }
    $(function () {// 针对于百度广告层问题的处理
        $("ins").css("z-index", 1);
    });
</script> 
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-31362994-1']);
  _gaq.push(['_setDomainName', 'dianziq.com']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<style>
    .photo_layer_close {
        position: absolute;
        top: -20px;
        right: -22px;
    }
    .photo_layer_close a {
        background-position: 0 0;
        cursor: pointer;
        display: block;
        height: 42px;
        overflow: hidden;
        width: 42px;
        background-image: url("http://www.dianziq.com:80/wenda/common/imgbrowse/img/photo_scan_layer-32.png?max_age=19830211&d=20121122103709");
    }
</style>

<!-- 浏览图片、相册 -->
<div onclick="javascript:$(this).find(&#39;iframe&#39;).attr(&#39;src&#39;,&#39;http://www.dianziq.com:80/wenda/common/imgbrowse/browse_imgs.html&#39;);$(this).hide();$(&#39;html&#39;).css(&#39;overflow&#39;, &#39;&#39;).css(&#39;paddingRight&#39;, &#39;&#39;);" id="img_slideview" style="position: fixed; top: 0; left: 0px; z-index: 100000; width: 100%; height:100%;background: url(&#39;../img/gray.png&#39;) repeat scroll 0 0 transparent;text-align: center;display:none;">
  <div id="graymodel" style="position: relative; width: 80%; height: 90%; top: 50%; left: 50%; margin-top: -45px; margin-left: -40px;">
    <div class="photo_layer_close"><a title="关闭" onclick="javascript:$(&#39;#img_slideview&#39;).find(&#39;iframe&#39;).attr(&#39;src&#39;,&#39;http://www.dianziq.com:80/wenda/common/imgbrowse/browse_imgs.html&#39;);$(&#39;#img_slideview&#39;).hide();$(&#39;html&#39;).css(&#39;overflow&#39;, &#39;&#39;).css(&#39;paddingRight&#39;, &#39;&#39;);return false;" href="http://www.dianziq.com/wenda/users/userModifyAction!profile.action#"> </a></div>
    <iframe width="100%" height="100%" frameborder="no" id="_ifr_slideview" allowtransparency="yes" src="./../images/browse_imgs.htm" style="overflow: hidden;border-style: none;border-width: 0;"></iframe>
  </div>
</div>

<!-- 遮罩层,用法$("div.modal-shadow").css("height", $(document).height() > $(window).height() ? $(document).height() : $(window).height()).show() ; -->
<div class="modal-shadow" style="display:none"></div>
<script src="./../images/select.js"></script> 
<script type="text/javascript" src="./../images/extra.js"></script> 
<script type="text/javascript" src="./../images/util.js"></script> 
<script type="text/javascript">
	$(function(){
		// 个人介绍文字限制
		DZQUtil.inputCnt("#userDetail","#user_detail_cnt",35);
		// 重新发送激活邮件
		reSendEmail();  
		// 重新设置邮件地址
		reSetEmail();
		// 更换城市地址
		changedCity();
		// 所有提示的监听
		tipHide();
		// 用户邮箱拦截
		srcIsAuth();
	});
	// 申请认证
	function srcIsAuth(){
		var tip = '';
		if (tip == 'email' || tip == 'addEmail') {// 邮箱验证
			$("#email-info").css("background-color","rgb(255, 255, 150)");
			window.setTimeout(function(){
				$("#email-info").css("background-color","");
			},3000);
		} 
	};
	
	// 所有提示的监听
	function tipHide(){
		$("input[type='radio']").bind("click",function(){$("span[name='gender-tip']").text("");});
		$("#userEmail").bind("focusin",function(){$("span[name='userEmail-tip']").text("");});
		$("#userName").bind("focusin",function(){$("span[name='userName-tip']").text("");});
		$("#userDetail").bind("focusin",function(){$("span[name='userDetail-tip']").text("");});
		$("#realname").bind("focusin",function(){$("span[name='realname-tip']").text("");});
		$("#phone").bind("focusin",function(){$("span[name='phone-tip']").text("");});
		$("#userCompany").bind("focusin",function(){$("span[name='company-tip']").text("");});
		$("#department").bind("focusin",function(){$("span[name='department-tip']").text("");});
		$("#position").bind("focusin",function(){$("span[name='position-tip']").text("");});
		$("#positionType").bind("focusin",function(){$("span[name='positionType-tip']").text("");});
		$("#province").bind("click",function(){$("span[name='city-tip']").text("");});
		$("#city").bind("click",function(){$("span[name='city-tip']").text("");});
		//$("#district").bind("click",function(){$("span[name='city-tip']").text("");});
		$("#industry").bind("click",function(){$("span[name='industry-tip']").text("");});
		$("#jobnature").bind("click",function(){$("span[name='jobnature-tip']").text("");});
		
		// 认证
		$("#auth-realname").bind("click",function(){$("span[name='auth-realname-tip']").text("");});
		$("#auth-phone").bind("click",function(){$("span[name='auth-phone-tip']").text("");});
		$("#auth-department").bind("click",function(){$("span[name='auth-department-tip']").text("");});
		$("#auth-company").bind("click",function(){$("span[name='auth-company-tip']").text("");});
	}
	

	
	// 保存用的基本信息
	function saveSetting(){
		if(isSubmit)return;
		// 姓名
		var userName = $.trim($("#userName").val());
		if (userName == "") {
			$("span[name='userName-tip']").text("姓名不能为空");
			return false ;
		} else if (userName.length > 20 || userName.length < 2) {
			$("span[name='userName-tip']").text("姓名长度在2~20之间");
			return false ;
		} else if (!REGXP.USER_NAME_REGXP.test(userName)) {
			$("span[name='userName-tip']").text("只支持中文,英文,下划线,点,中划线,并且不能以数字开头");
			return false ;
		}
		// 性别
		var gender =  $("input[type='radio']:checked").val() ;
		if (typeof gender == 'undefined') {
			$("span[name='gender-tip']").text("未选择您的性别");
			return false ;
		}
		
		// 个人简介
		var userDetail = $.trim($("#userDetail").val());
		if (userDetail == "") {
			$("span[name='userDetail-tip']").text("个人简介不能为空");
			return false ;
		}
		if (userDetail.length > 35 || userDetail.length < 4) {
			$("span[name='userDetail-tip']").text("个人简介长度在4~35之间");
			return false ;
		}
		// 真实姓名
		var realname = $("#realname").val();
		if(realname == ""){
			$("span[name='realname-tip']").text("真实姓名不能为空");
			return false ;
		}else if (!REGXP.USER_NAME_REGXP.test(realname)) {
			$("span[name='realname-tip']").text("只支持中文,英文,下划线,点,中划线,并且不能以数字开头");
			return false ;
		}

		// 城市
		var city = $("#province option:selected").text() + " " + $("#city option:selected").text(); 
		if ($.trim(city) == "" || city.indexOf("请选择") > 0){
			$("span[name='city-tip']").text("请选择所在城市");
			return false;
		}
		var qq = $("#qq").val();
		if (qq != null && !REGXP.NUM.test(qq)) {
			$("span[name='qq-tip']").text("请输入正确的QQ号码");
			return false;
		}
		// post数据
		var postData = {
				"userintegrityinfo.name" : userName,// 用户名
				"userintegrityinfo.gender" : gender,// 性别
				//"userintegrityinfo.email" : email,//邮箱
				"userintegrityinfo.detail" : userDetail,// 个人介绍
				"userintegrityinfo.realname" : realname,// 真实姓名
				//"userintegrityinfo.phone" : phone,//手机
				"userintegrityinfo.city" : city,// 城市
				"userintegrityinfo.tag" : $("#tag").val(),//标签
				"userintegrityinfo.birthday" : $("#birthday").val(),// 生日
				"userintegrityinfo.qq" : qq,// QQ
				"userintegrityinfo.weibo" : $("#weibo").val(),// 微博地址
				"userintegrityinfo.img" : 'male.png',// 微博地址
				"userintegrityinfo.realnameVbt" : $("select[name='realname-vbt'] option:selected").val(),
				"userintegrityinfo.qqVbt" : $("select[name='qq-vbt'] option:selected").val(),
				"userintegrityinfo.visibility" : 'AAASS',
				"userintegrityinfo.addr" : $('#address').val()
		};

		var __city = "";
		var __realName = "";
		if("false"=="true" && (__realName != realname || __city != city)){
			DianziQ.alert("修改真实姓名或所在城市信息将会取消实名认证，确定要修改吗？","提示消息",{"确定": function(){
				$(this).dialog("close");
				//传参
				postData["cancel"] = "true";
				submitUpdate(postData);
			},"取消":function(){
				$(this).dialog("close");
			}});
		}else{
			submitUpdate(postData);
		}
		
	}
	
	/**
	** 提交保存基本信息
	**/
	function submitUpdate(postData){
		Wenda.post( basePath + "json/userJsonAction!saveSetting.action", postData, function(data) {
			if (data.isLogin == 'no') {
				window.location.href = basePath+"login.jsp";
				return;
			}
			if (data.messages == 'is') {
				Wenda.alert("保存基本信息成功", "消息提醒", {"确定":function(){
						$(this).dialog("close");
						window.location.href = window.location.href ;
					}
				});
				return;
			} else if (data.messages != '') {
				Wenda.alert(data.messages, "消息提醒", {"确定":function(){
						$(this).dialog("close");
							window.location.href = window.location.href ;
						}
				});
				return;
			} 
		}, 'json'); 
	}
	
	// 保存用户职业信息
	function saveCareerInfo(){
		// 行业领域
		var industry = $("#industry option:selected").val(); 
		if (industry == -1) {
			$("span[name='industry-tip']").text("请选择行业/领域");
			return false;
		}
	
		// 职位类型
		var jobnature =  $("#jobnature option:selected").val();
		if (jobnature == -1) {
			$("span[name='jobnature-tip']").text("请选择职业类型");
			return false;
		} 
		
		// 公司
		var company = $.trim($("#userCompany").val()) ;
		if (company == "") {
			$("span[name='company-tip']").text("请填写公司名称");
			return false;
		} 
		
		// 部门
		var department = $.trim($("#department").val());
		if (department == "") {
			$("span[name='department-tip']").text("请填写部门名称");
			return false;
		}
		
		// 职位
		var position = $.trim($("#position").val());
		if (position == "") {
			$("span[name='position-tip']").text("请填写所在职位");
			return false;
		} 
		var postData = {
				"userintegrityinfo.industry" : industry,// 行业领域
				"userintegrityinfo.jobnature" : jobnature,// 职位类型
				"userintegrityinfo.company" : company,// 公司
				"userintegrityinfo.companyId" : $("#userCompanyId").val(),// 公司
				"userintegrityinfo.department" : department,//部门
				"userintegrityinfo.position" : position,//职位
				"userintegrityinfo.product" : $("#product").val(),// 公司产品
				"userintegrityinfo.f_product" : $("#fproduct").val(),//关注产品
				"userintegrityinfo.school" : $("#school").val(),//毕业院校
				"userintegrityinfo.companyVbt" : $("select[name='company-vbt'] option:selected").val(),
				"userintegrityinfo.departmentVbt" : $("select[name='department-vbt'] option:selected").val(),
				"userintegrityinfo.visibility" : 'AAASS'
		};
		var __industry = "航空、航海及军用电子";
		var __jobnature = "生产制作";
		var __company = "";
		var __department = "";
		var __position = "aaaa";
		//实名认证用户修改资料会取消实名认证
		if("false"=="true" && (__industry != industry || __jobnature != jobnature || __company != company 
				|| __department != department || __position != position)){
			DianziQ.alert("修改职业信息将会取消实名认证，确定要修改吗？","提示消息",{"确定": function(){
				$(this).dialog("close");
				//取消实名认证标示
				postData["cancel"] = "true";
				Wenda.post( basePath + "json/userJsonAction!saveCareerInfo.action", postData, function(data) {
					if (data.isLogin == 'no') {
						window.location.href = basePath+"login.jsp";
						return;
					}
					if (data.messages == 'is') {
						Wenda.alert("保存职业信息成功", "消息提醒", {"确定":function(){
								$(this).dialog("close");
								window.location.href = window.location.href ;
							}
						});
						return;
					} else if (data.messages != '') {
						Wenda.alert(data.messages, "消息提醒", {"确定":function(){
								$(this).dialog("close");
								window.location.href = window.location.href ;
							}
						});
						return;
					} 
				}, 'json');
			},"取消":function(){
				$(this).dialog("close");
			}});
		}else{
			Wenda.post( basePath + "json/userJsonAction!saveCareerInfo.action", postData, function(data) {
				if (data.isLogin == 'no') {
					window.location.href = basePath+"login.jsp";
					return;
				}
				if (data.messages == 'is') {
					Wenda.alert("保存职业信息成功", "消息提醒", {"确定":function(){
							$(this).dialog("close");
							window.location.href = window.location.href ;
						}
					});
					return;
				} else if (data.messages != '') {
					Wenda.alert(data.messages, "消息提醒", {"确定":function(){
							$(this).dialog("close");
							window.location.href = window.location.href ;
						}
					});
					return;
				} 
			}, 'json');
		}
		
		 
	}
	
	
		
	// 头像上传
	function chackUrl(){
		var url = document.getElementById("avt_file").value;
		if(url){
			return true;
		}else{
			Wenda.alert("请选择要上传的头像图片","提示消息",{
				"确定" : function(){
					$(this).dialog("close");
				}
			});
			return false;
		}
	}
	
	// 重新发送激活邮件
	function reSendEmail(){
		var email = 'longge_364666387@qq.com';
		$("#send-email").click(function(){
			var postDate = {link : 'baseinfo'} ;
			Wenda.post('http://www.dianziq.com:80/wenda/users/userModifyAction!reSendEmail.action?email=' + email, postDate, function(data){
				if (data.message == 'ok') {
					Wenda.alert("邮件发送成功，请您及时查收您的的邮件。如果没有找到，请留意这邮件是否被误认作垃圾邮件放到了垃圾邮件文件夹");
				}
			}, 'json');
		});
	}
	
	// 重新设置邮箱
	function reSetEmail(){
		$("#reset-new-email").click(function(){
			// 验证邮箱是否为空
			var email = $("#new-email").val();
			email = $.trim(email);
			if(email == ""){
				Wenda.alert("邮箱地址不能为空","提示消息",{
					"确定" : function(){
						$(this).dialog("close");
					}
				});
				$("#new-email").focus();
				return false ;
			}
			
			// 验证邮箱格式是否正确
			if(!email_Regexp.test(email)){// 调用 util.js 的变量
				Wenda.alert("邮箱格式不对","提示消息",{
					"确定" : function(){
						$(this).dialog("close");
					}
				});
				$("#new-email").select();
				$("#new-email").focus();
				return false ;
			}
			
			var postDate = {link : 'baseinfo'} ;
			Wenda.post('http://www.dianziq.com:80/wenda/users/userModifyAction!updateEmail.action?email=' + email, postDate, 
				function(data){
					if (data.message == 'ok') {
						Wenda.alert("邮箱更改成功，已经发送一封激活邮件到您的邮件箱,请及时激活。","提示消息",{
							"确定" : function(){
								$(this).dialog("close");
								window.location.href = window.location.href ;
							}
						});
					}else if(data.message == 'failed') {
						Wenda.alert("对不起，邮箱更改失败。","提示消息",{
							"确定" : function(){
								$(this).dialog("close");
								window.location.href = window.location.href ;
							}
						});
					}else {
						Wenda.alert(data.message,"提示消息",{
							"确定" : function(){
								$(this).dialog("close");
								window.location.href = window.location.href ;
							}
						});
					}
				}, 'json');
		});
		
		$("#unlegal-email-update").click(function(){
			$("#new-email-tip").toggle();
		});
		$("#new-email-update").click(function(){
			$("#new-email-tip").toggle();
		});
		$("#set-email").click(function(){
			$("#new-email-tip").toggle();
		});
	}
	
	// 更换城市地址
	function changedCity(){
		$("#province").change(function(){
			$("#city > option").remove();// 清除之前所有的option
			$("#city").append('<option value="0">--请选择城市--</option>');
			var postData = {
				"upid":$(this).val()			
			};
			$.post(basePath + "province/provinceAction!cityListByUpid.action", postData, function(data){
				var citySize = data.length ;
				// 对返回来的provinces进行分割,并且添加到select中去
				for (var i = 0 ; i < citySize; i++) {
					$("#city").append('<option value="'+ data[i].id + '">' + data[i].name + '</option>');
				} 
			},'json'); 
		}); 
		
		
		// 看是否有匹配到
		var provinceMatch = '' ;
		if (provinceMatch == '') {// 没有匹配到
			$("#province").prepend('<option selected="selected">--请选择省份--</option>');
			$("#city").prepend('<option selected="selected">--请选择城市--</option>');
		}
	}
	
</script> 
<a style="opacity: 1; display: none;" class="btt bttx" href="javascript:;" id="btt"></a>
<div role="listbox" class="ac-renderer" style="display: none; z-index: 1000; top: 40px; left: 801px; min-width: 300px; width: 406px;" id="searchList"></div>
<form style="display:none" method="GET" action="" id="enter_Form" class="xks">
</form>
<div id="wbim_box" class="wbim_box" style="position: fixed; bottom: 0px; right: 20px;">
  <div class="wbim_list_expand" style="z-index: 1001; right: 0px; bottom: 0px;display:none">
    <div class="wbim_list_con">
      <div class="wbim_tit">
        <div class="wbim_titin">
          <div class="wbim_tit_lf">
            <div node-type="status_manager">
              <div class="tit"> <span class="wbim_status_online"></span><span class="txt">在线</span><span class="icon"></span> </div>
              <div class="linert"></div>
              <ul style="display: none;">
                <li class="lingtop"></li>
                <li><a href="javascript:void(0)"><span class="wbim_status_online"></span>在线</a></li>
                <li><a href="javascript:void(0)"><span class="wbim_status_busy"></span>忙碌</a></li>
                <li><a href="javascript:void(0)"><span class="wbim_status_away"></span>离开</a></li>
                <li><a href="javascript:void(0)"><span class="wbim_status_offline"></span>隐身</a></li>
              </ul>
            </div>
          </div>
          <div class="wbim_tit_rt"> <a href="javascript:;" class="wbim_icon_mini" title="最小化" hidefocus="true" suda-uatrack="key=tblog_webim_behavior&amp;value=click_mini_button"></a> </div>
        </div>
      </div>
      <div class="wbim_line"></div>
      <div class="wbim_list_up">
        <div class="wbim_list_srch">
          <div class="wbim_list_srchin"> <a class="wbim_icon_close_s" style="display: none;" hidefocus="true" href="javascript:void(0)" suda-uatrack="key=tblog_webim_behavior&amp;value=click_empty_button"></a>
            <input id="searchFriend" type="text" placeholder="查找好友">
          </div>
        </div>
      </div>
      <div class="wbim_list_tab"></div>
      <div class="wbim_list_box">
        <div class="wbim_list_friend">
          <div class="wbim_list_group" id="wbim_list_group_frd">
            <div class="wbim_list_group_tit wbim_open" action-type="UserGroup.Onclick" action-data="id=normalusernogroup" title="我的好友"> 我的好友 [ <span title="在线好友">0</span> ] </div>
            <ul style="">
            </ul>
          </div>
        </div>
        <div class="wbim_list_friend">
          <div id="wbim_list_group_group" class="wbim_list_group">
            <div class="wbim_list_group_tit wbim_open" title="我的群组" action-data="id=normalusernogroup" action-type="UserGroup.Onclick">我的群组</div>
            <ul style="">
            </ul>
          </div>
        </div>
      </div>
      <div class="wbim_list_pos"> <a class="wbim_clicknone" hidefocus="true" href="javascript:;" suda-uatrack="key=tblog_webim_behavior&amp;value=click_bottom_button"><span class="wbim_icon_arrd"></span></a>
        <div class="wbim_send_con" title="查看我的私信"> <a class="wbim_send_pmsg" hidefocus="true" target="_blank" href="http://www.dianziq.com/wenda/notify/msg.action" url="/wenda/notify/msg.action"><span class="wbim_btn_smesg"></span></a> </div>
      </div>
    </div>
  </div>
  <div class="wbim_chat_box " style="position: absolute; right: 199px; bottom: 0px; z-index: 1001; display: none;" node-type="wbim_chat_box">
    <div class="wbim_chat_con" node-type="wbim_chat_con">
      <div class="wbim_tit" node-type="wbim_tit">
        <div class="wbim_titin" node-type="wbim_titin">
          <div class="wbim_tit_lf">
            <p node-type="wbim_single_user"> <span node-type="wbim_status" class="wbim_status_offline"></span><span class="txt"><a target="_blank" node-type="wbim_tit_lf_name" title="" href="http://www.dianziq.com/wenda/users/userModifyAction!profile.action#"></a></span><span style="display: none;" class="bringin" node-type="wbim_tit_lf_count">正在输入</span> </p>
            <p style="display: none;" node-type="wbim_group"> <span class="wbim_icon_group_tit"></span><span class="txt"><a target="_blank" node-type="wbim_tit_lf_gname"></a><em class="txtg">在线成员(<a title="查看在线成员" node-type="group_num" target="_blank" suda-uatrack="key=tblog_webim_behavior&amp;value=click_online_friends"></a>) </em></span> </p>
          </div>
          <div class="wbim_tit_rt"> <a href="javascript:;" class="wbim_icon_mini" hidefocus="true" title="最小化" node-type="wbim_icon_mini"></a><a href="javascript:;" class="wbim_icon_close" hidefocus="true" title="关闭" node-type="wbim_icon_close"></a> </div>
        </div>
      </div>
      <div node-type="wbim_mask" style="display: none; position: absolute; top: 24px; right: 316px; z-index: 1002;">
        <div style="width: 316px; height: 365px;" class="wbim_box_pop"></div>
        <div class="wbim_confirm_box" style="top: 145px; left: 50px;">
          <div class="wbim_confirm_info">
            <p class="wbim_confirm_p"> <span class="wbim_icon_tips"></span><span class="txt" node-type="txt"></span> </p>
            <p class="wbim_confirm_btn"> <a class="wbim_btn_c" node-type="wbim_btn_c" href="javascript:;" hidefocus="true"><em>确定</em></a> </p>
          </div>
        </div>
      </div>
      <div class="wbim_chat_lf" node-type="wbim_chat_lf" style="visibility: visible;"> <a class="wbim_scrolltop_n" node-type="wbim_scrolltop" hidefocus="true" href="javascript:;" onclick="return false;"></a>
        <div class="wbim_chat_friend_box">
          <ul class="wbim_chat_friend_list" node-type="wbim_chat_friend_list">
          </ul>
        </div>
        <a class="wbim_scrollbtm_n" node-type="wbim_scrollbtm" hidefocus="true" href="javascript:;" onclick="return false;"></a> </div>
      <div class="wbim_chat_rt">
        <div class="wbim_chat_up">
          <div class="wbim_chat_tips" node-type="wbim_chat_tips" style="display: block;"> <span class="wbim_icon_tips"></span><span node-type="wbim_chat_tips_content"></span><a hidefocus="true" href="javascript:;" node-type="wbim_icon_close_s" class="wbim_icon_close_s"></a> </div>
          <div class="wbim_chat_list" style="height: 198px; top: 24px;"> </div>
        </div>
        <div class="wbim_chat_toolbar" node-type="wbim_chat_toolbar">
          <div class="wbim_chat_toolbarin" node-type="wbim_chat_toolbarin">
            <div class="wbim_face" node-type="wbim_face" style="margin: 7px 0 0;"> <a class="wbim_tool_ctrl" id="wbim-face-upload" title="普通表情" node-type="wbim_icon_face" hidefocus="true" href="javascript:;"><i class="wbim_icon_face" style="margin-bottom: 3px;"></i><span style="margin-bottom:0px;">表情</span></a>
              <div class="wbim_face_box" style="display: none;" node-type="wbim_face_box">
                <div class="wbim_face_tit">
                  <div class="wbim_face_arr"></div>
                  <div class="wbim_face_tit_lf">普通表情</div>
                  <a class="wbim_icon_close" href="javascript:;" node-type="wbim_icon_close"></a> </div>
                <div class="wbim_face_con">
                  <ul class="wbim_face_list" node-type="wbim_face_list">
                  </ul>
                  <div class="tsina_loading cter"> <span class="tsina_ico_ldg"></span> </div>
                </div>
              </div>
            </div>
            <div title="上传图片" style="margin-top:7px" class="wbim_face"> <a href="http://www.dianziq.com/wenda/users/userModifyAction!profile.action#" hidefocus="true" class="wbim_tool_ctrl" id="wbim-image-upload"><i class="wbim_icon_img"></i><i style="display: inline-block;">
              <div id="fileToUpload-webim" class="uploadify" style="height: 15px; width: 30px;">
                <object id="SWFUpload_0" type="application/x-shockwave-flash" data="http://www.dianziq.com/wenda//js/uploadify.swf?preventswfcaching=1393911659442" width="30" height="15" class="swfupload" style="position: absolute; z-index: 1;">
                  <param name="wmode" value="transparent">
                  <param name="movie" value="http://www.dianziq.com:80/wenda//js/uploadify.swf?preventswfcaching=1393911659442">
                  <param name="quality" value="high">
                  <param name="menu" value="false">
                  <param name="allowScriptAccess" value="always">
                  <param name="flashvars" value="movieName=SWFUpload_0&amp;uploadURL=http%3A%2F%2Fwww.dianziq.com%3A80%2Fwenda%2F%2Fparty%2FfileUploadAction!uploadFile.action&amp;useQueryString=false&amp;requeueOnError=false&amp;httpSuccess=&amp;assumeSuccessTimeout=30&amp;params=&amp;filePostName=file&amp;fileTypes=*.gif%3B%20*.jpg%3B%20*.png%3B*.jpeg%3B*.bmp&amp;fileTypesDescription=%E5%9B%BE%E7%89%87%E6%96%87%E4%BB%B6&amp;fileSizeLimit=0&amp;fileUploadLimit=0&amp;fileQueueLimit=999&amp;debugEnabled=false&amp;buttonImageURL=%2Fwenda%2Fusers%2F&amp;buttonWidth=30&amp;buttonHeight=15&amp;buttonText=&amp;buttonTextTopPadding=0&amp;buttonTextLeftPadding=0&amp;buttonTextStyle=color%3A%20%23000000%3B%20font-size%3A%2016pt%3B&amp;buttonAction=-110&amp;buttonDisabled=false&amp;buttonCursor=-2">
                </object>
                <div id="fileToUpload-webim-button" class="uploadify-button " style="height: 15px; line-height: 15px; width: 30px;"><span class="uploadify-button-text">图片</span></div>
              </div>
              <div id="fileToUpload-webim-queue" class="uploadify-queue" style="display: none;"></div>
              </i></a> </div>
            <div title="上传文件" class="wbim_face" style="display:none"> <a href="javascript:;" hidefocus="true" class="wbim_tool_ctrl" id="wbim-file-upload"><i class="wbim_icon_doc"></i>文件</a> </div>
            <a hidefocus="true" href="javascript:;" class="wbim_icon_group" style="margin-left: 10px; display: none;"></a><a class="wbim_history" style="" title="私信记录" target="_self" suda-uatrack="key=tblog_webim_behavior&amp;value=click_chats_button" href="http://weibo.com/message/talklist.php?source=webim&uid=1163688452"><span class="wbim_icon_chatdoc"></span>私信记录</a><a class="wbim_history" style="display: none;" node-type="wbim_history_group" title="聊天记录" target="_blank" suda-uatrack="key=tblog_webim_behavior&amp;value=click_chats_button"><span class="wbim_icon_chatdoc"></span>聊天记录</a> </div>
        </div>
        <div class="wbim_chat_input" node-type="wbim_chat_input" style="margin-top: 1px;">
          <div class="wbim_chat_input_tips" node-type="root" style="display: none;">
            <div class="wbim_tips_pos_n" node-type="wbim_tips_pic" style="display: none;">
              <div class="wbim_tips_pic_n"> <a href="javascript:;"><img node-type="img_preview" alt="" action-type="wbim_img_preview" style="cursor: pointer"></a> </div>
              <span class="wbim_p_arr"></span> </div>
            <div class="fl" node-type="fl"></div>
            <div class="fr" node-type="fr"></div>
          </div>
          <textarea node-type="wbim_chat_input_ta"></textarea>
        </div>
        <div class="wbim_chat_btm" node-type="wbim_chat_btm">
          <div class="wbim_chat_btmin">
            <div class="wbim_chat_btm_lf"></div>
            <div class="wbim_chat_btm_rt">
              <p class="wbim_tips_char"> <span node-type="wbim_tips_char">200</span><span class="spetxt" node-type="spetxt"></span> </p>
              <div class="wbim_btn_send" node-type="wbim_btn_send"> <a hidefocus="true" node-type="wbim_btn_publish" class="wbim_btn_publish" href="javascript:;" title="发送">发送</a>
                <div class="wbim_btn_choose"> <a node-type="wbim_btn_choose_a" class="wbim_btn_choose_a">选择</a>
                  <ul node-type="wbim_btn_choose">
                    <li class=" " node-type="wbim_enter_send_li"><span></span><em><a href="javascript:;" node-type="wbim_enter_send">按Enter键发送</a></em></li>
                    <li class="line"><span></span><em></em></li>
                    <li node-type="wbim_ctrlenter_send_li" class=" curr"><span></span><em><a href="javascript:;" node-type="wbim_ctrlenter_send">按Ctrl+Enter键发送</a></em></li>
                  </ul>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="wbim_chat_ef" style="display:none" node-type="wbim_chat_ef">
        <div id="wbim_member" class="wbim_member">
          <div style="background-color:#EBEBEB;text-align:center">群成员</div>
          <ul>
          </ul>
        </div>
      </div>
    </div>
    <div style="left: 130px; z-index: 100; top: 150px; position: absolute; display: none;" node-type="wbim_confirm_box">
      <div class="wbim_confirm_box">
        <div class="wbim_confirm_con">
          <div class="wbim_confirm_info">
            <p class="wbim_confirm_p"> <span class="wbim_icon_ask"></span><span class="txt">提示：关闭会话窗口后，其中的未读私信将不再重复提醒。</span> </p>
            <p class="wbim_confirm_btn"> <a href="javascript:;" class="wbim_btn_c" node-type="wbim_btn_c"><em>确认</em></a><a href="javascript:;" class="wbim_btn_n" node-type="wbim_btn_n"><em>取消</em></a> </p>
          </div>
        </div>
      </div>
      <div style="position: absolute; width: 420px; height: 365px; top: -126px; left: -130px;" class="wbim_box_pop" node-type="wbim_box_pop"></div>
    </div>
  </div>
  <div class="wbim_min_box_col2" style="position: absolute; bottom: 0px; right: 0px;">
    <div class="wbim_min_box">
      <div class="wbim_min_friend">
        <p class="statusbox"> <span class="wbim_status_online"></span> </p>
        私信聊天 [ <span title="在线联系人" class="wbim_online_count">0</span> ]<span class="webim_rec_count" style="display: none; color: gray; margin-left: 80px;"></span> </div>
      <div class="wbim_min_line wbim_min_linefor3"></div>
      <div class="wbim_min_chat"> <span class="wbim_icon_msg"></span><span class="wbim_min_text_pre"></span><span class="wbim_min_nick" suda-uatrack="key=tblog_webim_behavior&amp;value=click_unread_message"></span><span class="line"></span><span class="wbim_min_text"></span> </div>
    </div>
  </div>
  <bgsound loop="1" class="webim_msg_sd"></bgsound>
</div>
<div id="_my97DP" style="position: absolute; top: 491px; left: 526px; z-index: 100004; display: none;">
  <iframe style="width: 186px; height: 203px;" src="./../images/My97DatePicker.htm" frameborder="0" border="0" scrolling="no"></iframe>
</div>
</body>
</html>